﻿/**
 * Peter
 * Created by: Peter Development Team
 *    http://peter.codeplex.com/
 * 
 * GNU General Public License version 2 (GPLv2)
 *    http://peter.codeplex.com/license
 *
 *  This code is provided on an AS IS basis, with no WARRANTIES,
 *  CONDITIONS or GUARANTEES of any kind.
 *  
 **/

using System;
using System.ComponentModel.Composition;
using System.Windows;
using Peter.Common;
using Peter.Common.MainMenu;

namespace Peter.Logic
{
   /// <summary>
   /// View model for the actions on the tools menu.
   /// </summary>
   public class ModelTools
   {
      /// <summary>
      /// Gets the show file explorer menu item.
      /// </summary>
      [Export (typeof (IMainMenuItem))]
      public IMainMenuItem GuidMenuItem
      {
         get
         {
            return new PeterMainMenuItem
            {
               Priority = 400,
               HeaderName = "tools",
               Command = new RelayCommand (obj => Clipboard.SetText (Guid.NewGuid ().ToString())),
               ToolTip = "Generate GUID",
               Icon = MainMenuIcon.Binary
            };
         }
      }
   }
}
